# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libchamplain
pkgver=0.12.21
pkgrel=1
pkgdesc="libchamplain is a C library providing a ClutterActor to display maps"
url="https://wiki.gnome.org/Projects/libchamplain"
arch="all"
license="LGPL-2.0-or-later"
makedepends="glib-dev gtk+3.0-dev clutter-dev cairo-dev sqlite-dev libsoup3-dev
	gobject-introspection-dev clutter-gtk-dev gtk-doc vala meson"
options="!check" # no tests
subpackages="$pkgname-dev $pkgname-doc"
source="https://download.gnome.org/sources/libchamplain/${pkgver%.*}/libchamplain-$pkgver.tar.xz"

build() {
	abuild-meson \
		-Dvapi=true \
		-Dintrospection=true \
		-Dgtk_doc=true \
		. output
	meson compile -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
8e3b4a292056b1d90be128dab347b1953e6acd00b1abf56fcc496eea15688ef232b81afe39147a9d6059ab248e3ceb7e07683c23501671b93797b0a87faccca9  libchamplain-0.12.21.tar.xz
"
